import { IdType } from "../types/L_Type";

/** id生成器 */
export default class IDGen{
 
 
    private static idMap:Map<IdType,number>=new Map()


    public static getNextId(idType:IdType):number{
        let v:number=this.idMap.get(idType) || 0
        v++
        this.idMap.set(idType,v)
        return  v
    }

  
}  